package com.microcity.newframe.di.basemodules;

import android.content.Context;

import com.microcity.newframe.app.App;
import com.microcity.newframe.rxbus.RxBus;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by long on 2016/8/19.
 * Application Module
 */
@Module
public class ApplicationModule {

    private final App mApplication;
//    private final DaoSession mDaoSession;
    private final RxBus mRxBus;

    public ApplicationModule(App application, RxBus rxBus) {
        mApplication = application;
//        mDaoSession = daoSession;
        mRxBus = rxBus;
    }

    @Provides
    @Singleton
    Context provideApplicationContext() {
        return mApplication;
    }

    @Provides
    @Singleton
    RxBus provideRxBus() {
        return mRxBus;
    }

//    @Provides
//    @Singleton
//    DaoSession provideDaoSession() {
//        return mDaoSession;
//    }
}
